package com.nian.mongodb.service.service;

import com.nian.mongodb.service.model.Department;

import java.util.List;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/12 0012 18:58
 */
public interface IDepartmentService {

    Department findByCode(String code);

    List<Department> findByName(String name);

    Department save(Department model);

    void saveAll(List<Department> list);
}
